From: Jasper St. Pierre Date: Tue, 23 Apr 2013 20:39:29 +0000 (-0400) Subject: backgroundMenu: Ignore releases when using long-press X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4278 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=92e5d2b8f55e7b8b4491172dd79654612d552498;p=gnome-shell.git backgroundMenu: Ignore releases when using long-press Otherwise, a release from the long-press will be seen as a button event that should close the menu. https://bugzilla.gnome.org/show_bug.cgi?id=697203 --- diff --git a/js/ui/backgroundMenu.js b/js/ui/backgroundMenu.js index 1328b3f89..06e698ca7 100644 --- a/js/ui/backgroundMenu.js +++ b/js/ui/backgroundMenu.js @@ -46,8 +46,10 @@ function addBackgroundMenu(actor) { clickAction.connect('long-press', function(action, actor, state) { if (state == Clutter.LongPressState.QUERY) return action.get_button() == 1 && !actor._backgroundMenu.isOpen; - if (state == Clutter.LongPressState.ACTIVATE) + if (state == Clutter.LongPressState.ACTIVATE) { openMenu(); + actor._backgroundManager.ignoreRelease(); + } return true; }); clickAction.connect('clicked', function(action) {